
package com.idealighter.game.roomcard.games.mustniuniu.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.message.ModuleMsgIdConstant;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.roomcard.games.mustniuniu.manager.MustNiuNiuMgr;
import com.idealighter.game.roomcard.games.mustniuniu.message.ReqCreateRoomCardMsg;
import com.idealighter.game.server.handler.ReqMessageHandler;

/**
 * .
 *
 */
@ReqMsgHandler(ModuleMsgIdConstant.MustNiuNiu.CREATE_ROOM_CARD)
public class ReqCreateRoomCardHandler implements ReqMessageHandler {
  @Inject
  private MustNiuNiuMgr mstnnMgr;

  @Override
  public ResMessage action(Player player, ReqMessage message) {
    ReqCreateRoomCardMsg msg = (ReqCreateRoomCardMsg) message;
    return mstnnMgr.resCreateRoomCard(player, msg.getGroupId(), msg.getType(), msg.getSeat(),
        msg.getRound(), msg.getFee(), msg.getBetOptionId(), msg.getStartOptionId(),
        msg.getExtrBetOptionId(), msg.getMultipleId(), msg.getSpecialMultipleIds(),
        msg.getAdvanceOptionIds(), msg.getBankerChipId(), msg.getCallBankerMultiple());
  }
}
